home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
pc_board
/
gift4b16.zip
/
TESTGIF.BAT
< prev
Wrap
DOS Batch File
|
1992-09-04
|
960b
|
34 lines
@echo off
rem -- ProDoor/PCBoard batch file for testing GIF files
rem -- using GIFtest. Requires ProEcho from Sam Smith.
rem -- must call with "testgif %filename% %comport%"
rem -- Log GIFs to C:\PRODOOR\GIFLOG
rem -- Minimum size GIFs 321x201x16
rem -- Node 1 - Search for GIFTEST.CFG in the PCB directory
rem -- Erase failed GIFs
giftest %1 /P:%2/L:C:\PRODOOR\GIFLOG/E/M:321x201x16/N:1/C:C:\PCB\GIFTEST.CFG
if errorlevel==25 goto DUPE
if errorlevel==20 goto BADREZ
if errorlevel==10 goto GIFLITE
if errorlevel==1 goto INCOMPLETE
proecho %2 ~Passed all tests!~~
goto end
:INCOMPLETE
proecho %2 ~Invalid Image or Incomplete Upload
proecho %2 ~Deleting GIF...~~
del %1
goto end
:GIFLITE
proecho %2 ~Detected GIFLITE, passed all tests~~
goto end
:BADREZ
proecho %2 ~Failed Minimum Resolution of 321x201x16
proecho %2 ~Deleteing GIF...~~
del %1
goto end
:DUPE
proecho %2 ~Duplicate GIF!
proecho %2 ~Deleting GIF...~~
del %1
:END